package com.wuliu.system.domain.dto.applet;

import com.wuliu.common.annotation.NotLessThanZero;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author realue
 * @version 1.0
 * @date 2023-11-09 15:21
 */
@Data
@ApiModel(description = "小程序查询运费请求类")
public class QryOrderFeeDto {

    @NotBlank(message = "省份不能为空")
    @ApiModelProperty(value = "省份")
    private String province;

    @NotBlank(message = "城市不能为空")
    @ApiModelProperty(value = "城市")
    private String city;

    @NotLessThanZero(message = "重量必须大于0")
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "长")
    private BigDecimal length;

    @ApiModelProperty(value = "宽")
    private BigDecimal width;

    @ApiModelProperty(value = "高")
    private BigDecimal height;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "件数")
    private Integer cargoCnt;

    @Min(value = 1, message = "快递类型不正确")
    @ApiModelProperty(value = "快递类型 1.标准快递")
    private Integer cargoType;
}
